<?php 
	class contact_model extends CI_model{
		
		function get_contact($key,$id_language){
			$q = $this->db->query("SELECT * FROM
									setting s
									INNER JOIN setting_website sw ON s.id_table=sw.id_kategori_sub
									INNER JOIN setting_website_language swl ON sw.id_setting_website=swl.id_setting_website
									WHERE
									s.key='contact_us' AND sw.key='$key' AND swl.id_language='$id_language'");

			return $q->result();
		}

	}

?>